/*
 * @Descripttion:
 * @version:
 * @Author: ChenXiang
 * @Date: 2021-04-16 11:25:59
 * @LastEditors: ChenXiang
 * @LastEditTime: 2021-09-30 16:52:42
 */
// import React, { useState } from "react";
// export default (props: any) => {
//   console.log(props);
//   const prevFrom = props.location.state?.from;
//   if (prevFrom) {
//     const routeLink = prevFrom.pathname + prevFrom.search;
//     console.log(routeLink);
//   } else {
//     console.log("跳转到自定义首页");
//   }

//   return <div>login</div>;
// };
import React from 'react'
import ChildPage from './ChildPage'
export const MyContext = React.createContext(null);
function MainPage() {
  return (
    <div>
      <MyContext.Provider value='Hello world'>
        <ChildPage />
      </MyContext.Provider>
    </div>
  )
}
export default MainPage;